package com.auth.leaves;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;


@SpringBootApplication(scanBasePackages = "com.auth.leaves.*")
@EnableCaching
@EnableAutoConfiguration(exclude = {MultipartAutoConfiguration.class})
//@LKADocument(basePackages="com.santu.leaves.controller",projectName="RBAC",description="智能、便捷、高效",version="1.0",serverNames="192.168.1.203:8089",enabled=true)
public class RBACApplication  extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(RBACApplication.class, args);
    }

    /**
     * 工程打成war需要继承SpringBootServletInitializer，重写configure方法
     * @param
     * @return
     */
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        return builder.sources(RBACApplication.class);
//    }

}
